/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package springioc.BeanFactory;

import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

/**
 *
 * @author Mcdonald
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        XmlBeanFactory factory = 
                new XmlBeanFactory(new ClassPathResource("SpringXMLConfig.xml"));
        
        HelloWorld helloWorld = (HelloWorld)factory.getBean("HelloWorld");
        helloWorld.getMessage();
    }
    
}
